<?php
/**
 * This is NOT a freeware, use is subject to license terms
 * From www.1314study.com
 */

if(!defined('IN_DISCUZ')) {
    exit('http://51weixuecom.gotoip4.com/');
}
class plugin_study_dbank {
	function global_footer() {
        global $_G;
        $return = '';
        if(CURMODULE == 'post' && CURSCRIPT == 'forum'){
	        	$splugin_setting = $_G['cache']['plugin']['study_dbank'];
		        $study_gids = (array)unserialize($splugin_setting['study_gids']);
		        if(in_array($_G['member']['groupid'], $study_gids)) {
		        		$study_fids = (array)unserialize($splugin_setting['study_fids']);
		        		if(in_array($_G['fid'], $study_fids)) {
		        				$splugin_lang = lang('plugin/study_dbank');
			        			$PLUGINID = $splugin_setting['study_appid'] ? $splugin_setting['study_appid'] : '56880';
										$PLUGINSECRET = $splugin_setting['study_appsecret'] ? $splugin_setting['study_appsecret'] : 'Z9QYf5sgh4fWtRdUcrXOw1Ab2zi6ibVR';
						        $return = '';
					        	include('./source/plugin/study_dbank/dbank.php');
				        }
			      }
	      }
        return $return;
  }
}
?>